package lab01;

import java.io.IOException;
import java.util.Scanner;

public class Test07 {

    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("enter a student's grade rank:");
        char rank = (char)System.in.read();

        print(rank);

    }

    public static void print(char rank) {
        switch(rank) {
            case 'A':
                System.out.println("85分以上（包括85）");break;
            case 'B':
                System.out.println("70-85分（包括70分）");break;
            case 'C':
                System.out.println("60-70分（包括60分）");break;
            case 'D':
                System.out.println("60分以下");break;
            default:
                System.out.println("输入错误");
        }
    }
}
